<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="../common/baseCss.jsp" %>
<title>编辑认证 - 管理员管理</title>
</head>
<body>
	<article class="page-container">
		<form method="post" class="form form-horizontal" id="verifyEditForm" enctype="multipart/form-data">
			<input type="hidden" id="uid" name="uid" value="${verify.realNameTmp.uid}">
			<input type="hidden" id="rleId" name="rleId" value="${verify.role.rleId}">
			<input type="hidden" id="oriState" name="oriState" value="${verify.state}">
			<input type="hidden" id="dr" name="dr" value="1">
			
			<p style="font-size: 16px"><b>法人信息</b></p>
			<hr>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">真实姓名：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="realName" name="realName" value="${verify.realNameTmp.realName}" disabled="disabled">
				</div>
			</div>
			<c:if test="${verify.state != 2}">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">证件类型：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<c:choose>
							<c:when test="${verify.realNameTmp.creType == 0}">
								<input type="text" class="input-text" id="creType" name="creType" value="身份证" disabled="disabled">
							</c:when>
							<c:otherwise>
								<input type="text" class="input-text" id="creType" name="creType" value="护照" disabled="disabled">
							</c:otherwise>
						</c:choose>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">证件号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" id="creNum" name="creNum" value="${verify.realNameTmp.creNum}" disabled="disabled">
					</div>
				</div>
			
				<c:choose>
					<c:when test="${verify.realNameTmp.creType == 0}">
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3">证件照(人像面)：</label>
							<div class="formControls col-xs-5 col-sm-6">
								<img style="width: 100%; height: 100%;" src="<%=basePath%>file/viewimg?fileName=${verify.realNameTmp.creFrontPic}&type=3">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3">证件照(国徽面)：</label>
							<div class="formControls col-xs-5 col-sm-6">
								<img style="width: 100%; height: 100%;" src="<%=basePath%>file/viewimg?fileName=${verify.realNameTmp.creReversePic}&type=3">
							</div>
						</div>
					</c:when>
					<c:otherwise>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-3">证件照：</label>
							<div class="formControls col-xs-5 col-sm-6">
								<img style="width: 100%; height: 100%;" src="<%=basePath%>file/viewimg?fileName=${verify.realNameTmp.creFrontPic}&type=3">
							</div>
						</div>					
					</c:otherwise>
				</c:choose>
			</c:if>
			
			<p style="font-size: 16px"><b>认证信息</b></p>
			<hr>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">认证方式：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="rleName" name="rleName" value="${verify.role.rleName}" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">企业名称：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="company" name="company" value="${verify.company}" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">行业类别：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="title" name="title" value="${verify.category.title}" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">企业规模：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="bsName" name="bsName" value="${verify.scale.bsName}" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">主营业务：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="mainBusiness" name="mainBusiness" value="${verify.mainBusiness}" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">经济类型：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="etname" name="etname" value="${verify.economicType.etname}" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">注册资金：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="number" class="input-number" min="0" id="regFund" name="regFund" value="${verify.regFund}" disabled="disabled">(单位:万元)
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">统一社会信用代码：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="creCode" name="creCode" value="${verify.creCode}" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">营业执照：</label>
				<div class="formControls col-xs-5 col-sm-6">
					<img style="width:100%;height:100%;" src="<%=basePath%>file/viewimg?fileName=${verify.crePic}&type=3">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">
					<span class="c-red">*</span>简介：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<textarea id="intro" rows="10" cols="80" name="intro" disabled="disabled">${verify.intro}</textarea>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">联系人姓名：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="contact" name="contact" value="${verify.contact}" disabled="disabled">
				</div>
			</div>
			<%-- <div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">职位：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="job" name="job" value="${verify.job}" disabled="disabled">
				</div>
			</div> --%>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">手机：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="phone" name="phone" value="${verify.phone}" disabled="disabled">
				</div>
			</div>
			<%-- <div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">电子邮箱：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="email" name="email" value="${verify.email}" disabled="disabled">
				</div>
			</div> --%>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">微信账号：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="wechat" name="wechat" value="${verify.wechat}" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">申请时间：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="cts" name="cts" value="<fmt:formatDate value='${verify.cts}' pattern='yyyy-MM-dd HH:mm:ss'/>" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">审核时间：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="mts" name="mts" value="<fmt:formatDate value='${verify.mts}' pattern='yyyy-MM-dd HH:mm:ss'/>" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">操作人：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" id="mUname" name="mUname" value="${verify.mUname}" disabled="disabled">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">
					<span class="c-red">*</span>认证状态：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<select id="state" name="state" class="select" style="width:200px;height:31px">
						<option value="1">认证中</option>
						<option value="2">认证成功</option>
						<option value="3">认证失败</option>
						<option value="4">认证过期</option>
					</select>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">
					<span class="c-red">*</span>审核说明：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<textarea style="resize:none;" id="checkResult" rows="5" cols="50" name="checkResult">${verify.checkResult}</textarea>
				</div>
			</div>
			
			<c:choose>
				<c:when test="${verify.state == 2}">
					<div class="row cl" id="validDateDiv">
				</c:when>
				<c:otherwise>
					<div class="row cl" id="validDateDiv" style="display: none">					
				</c:otherwise>
			</c:choose>
						<label class="form-label col-xs-4 col-sm-3">有效期：</label>
						<div class="formControls col-xs-8 col-sm-9">
							<input type="number" class="input-text" style="width:200px;" id="validDate" name="validDate" value="${verify.validDate}">(若无限制无需填写)(单位:天)
						</div>
					</div>
			
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
					<button type="submit" class="btn btn-success radius">
						<i class="icon-ok"></i> 确定
					</button>
				</div>
			</div>
		</form>
	</article>

	<%@ include file="../common/baseJs.jsp" %>
	<script type="text/javascript" src="manager/js/plugin/jquery-form.js"></script>
	<script type="text/javascript" src="manager/js/verify/common_verify_edit.js"></script>
</body>
</html>